package com.denlaku.longan.service.impl;

import com.denlaku.longan.repository.SysRoleRepository;
import com.denlaku.longan.service.SysRoleService;
import com.denlaku.longan.vo.SysRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author tianx
 */
@Service
public class SysRoleServiceImpl implements SysRoleService {
	@Autowired
	private SysRoleRepository sysRoleRepository;

	@Override
	public SysRole get(Long id) {
		return sysRoleRepository.get(id);
	}

	@Override
	public List<SysRole> list(SysRole sysRole) {
		return sysRoleRepository.list(sysRole);
	}
}
